Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(s2n-quic): remove bytes pin and fix new clippy lints #2291

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

WesleyRosenblum
Copy link
Contributor

@WesleyRosenblum WesleyRosenblum commented Aug 2, 2024

Resolved issues:

resolves #2289

Description of changes:

The latest bytes release corrects the issue with 1.7.0 so we can remove the pin on the old version, see tokio-rs/bytes#725

I've also fixed some new Clippy lints.

Call-outs:

I disabled the new unexpected_cfgs lint, as the MSRV we use does not support the recommended way to avoid this lint. This can be removed when the MSRV is 1.74.0, see #2292

Testing:

Ran clippy +stable locally

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@WesleyRosenblum WesleyRosenblum marked this pull request as ready for review August 2, 2024 00:40
@@ -4,6 +4,7 @@
//! This module contains abstractions around the platform on which the
//! stack is running

#![allow(unexpected_cfgs)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one we probably could enable, since we do have a build.rs for this crate and I don't think cargo warns on old versions if you emit that directive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it, but it does have this warning:

warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lame

@WesleyRosenblum WesleyRosenblum merged commit 445f73b into main Aug 2, 2024
130 of 131 checks passed
@WesleyRosenblum WesleyRosenblum deleted the WesleyRosenblum/unpinbytesclippy branch August 2, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bytes 1.7.0 breaks s2n-quic
2 participants